From f346d1104e0a18ef2145d310f5f051863b12b6b9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Thu, 21 Jan 2016 17:02:06 +0100 Subject: [PATCH] Use reproducible date/time --- debian/patches/reproducible-date.patch | 24 ++++++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 25 insertions(+) create mode 100644 debian/patches/reproducible-date.patch diff --git a/debian/patches/reproducible-date.patch b/debian/patches/reproducible-date.patch new file mode 100644 index 00000000..6d9918ed --- /dev/null +++ b/debian/patches/reproducible-date.patch @@ -0,0 +1,24 @@ +Description: use reproducible date/time + rather than using __DATE__ we use a value that is baed on the debian/changelog + timestamp. +Author: IOhannes m zmölnig +Last-Update: 2015-01-21 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- juce.orig/modules/juce_core/time/juce_Time.cpp ++++ juce/modules/juce_core/time/juce_Time.cpp +@@ -448,10 +448,13 @@ + return 0; + } + ++#ifndef BUILD_DATE ++# define BUILD_DATE __DATE__ ++#endif + Time Time::getCompilationDate() + { + StringArray dateTokens; +- dateTokens.addTokens (__DATE__, true); ++ dateTokens.addTokens (BUILD_DATE, true); + dateTokens.removeEmptyStrings (true); + + return Time (dateTokens[2].getIntValue(), diff --git a/debian/patches/series b/debian/patches/series index 1c935826..b4153546 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1,3 @@ no-ztypes.patch +reproducible-date.patch do-not-track.patch -- 2.30.2